﻿@{
    Layout = null;
}
@model ElingOA6_Admin_DSJCJ.Model.HREmpl 
<!DOCTYPE html>
<html>
<head>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(
        new StyleSheet { ExtensionType = ExtensionType.ListBox }
    )
    @Html.DevExpress().GetScripts(
         new Script { ExtensionType = ExtensionType.ListBox }
    )

    <script>
        if (top.boardtop) {
            top.boardtop.head_txt.innerText = "个人信息修改";
        }
    </script>

    <script type="text/javascript">
        $(function () {
            var message = $('#hidMessage').val();
            if (message != "") {
                alert(message);
            }

        });

        function ok() {
            form1.submit();
        }
        /*取消*/
        function cancel() {
            window.top.location.href = rootPath + "/Index";
        }
    </script>

</head>
<body>
    @using (Html.BeginForm("SaveEmpSelfInfo", "Empl", FormMethod.Post, new { id = "form1", @class = "tableFrom" }))
    {
        <table align="center" class="tableForm">
            <tr>
                <th style="width:15%">
                    姓名:
                </th>
                <td class="tdClass"  style="width:35%">
                    @Html.DevExpress().Label(settings =>
          {
              settings.Name = "FEmpName";
              settings.Text = Model.FEmpName;
          }).GetHtml()
                </td>

                <th style="width:15%">
                    出生日期:
                </th>
                <td class="tdClass" style="width:35%">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "FBirthday";
                   settings.Properties.NullText = "";
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   if (Model.FBirthday.HasValue)
                   {
                       settings.Date = Model.FBirthday.Value;
                   }

               }).GetHtml()
                </td>
        
            </tr>
            <tr>
                <th style="width:15%">
                    办公室电话:
                </th>
                <td class="tdClass" style="width:35%">
                    @Html.DevExpress().TextBox(settings =>
          {
              settings.Name = "FOfficeTel";
              settings.Width = System.Web.UI.WebControls.Unit.Percentage(96);
              settings.Text = Model.FOfficeTel;
          }).GetHtml()
                </td>
                <th style="width:15%">
                    虚拟电话:
                </th>
                <td class="tdClass" style="width:35%">
                    @Html.DevExpress().TextBox(settings =>
          {
              settings.Name = "FTelShortNo";
              settings.Width = System.Web.UI.WebControls.Unit.Percentage(96);
              settings.Text = Model.FTelShortNo;
          }).GetHtml()
                </td>
            </tr>
            <tr>
                <th>
                    手机:
                </th>
                <td class="tdClass">
                    @Html.DevExpress().TextBox(settings =>
          {
              settings.Name = "FMobile";
              settings.Width = System.Web.UI.WebControls.Unit.Percentage(96);
              settings.Text = Model.FMobile;
          }).GetHtml()
                </td>
                <th>
                    手机虚拟号:
                </th>
                <td class="tdClass">
                    @Html.DevExpress().TextBox(settings =>
          {
              settings.Name = "FMobShortNo";
              settings.Width = System.Web.UI.WebControls.Unit.Percentage(96);
              settings.Text = Model.FMobShortNo;
          }).GetHtml()
                </td>
            </tr>
            <tr>
                <th>
                    家庭电话:
                </th>
                <td class="tdClass">
                    @Html.DevExpress().TextBox(settings =>
          {
              settings.Name = "FHomeTel";
              settings.Width = System.Web.UI.WebControls.Unit.Percentage(96);
              settings.Text = Model.FHomeTel;
          }).GetHtml()
                </td>
                <th>
                    电子邮箱:
                </th>
                <td class="tdClass">
                    @Html.DevExpress().TextBox(settings =>
          {
              settings.Name = "FEMail";
              settings.Width = System.Web.UI.WebControls.Unit.Percentage(96);
              settings.Text = Model.FEMail;
          }).GetHtml()
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                    <table>
                        <tr>
                            <td>
                                @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnOK";
                   settings.Text = "确定";
                   settings.ControlStyle.CssClass = "button";
                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/ok.png");
                   settings.ClientSideEvents.Click = "ok";
                   settings.Width = System.Web.UI.WebControls.Unit.Pixel(70);
               }).GetHtml()
                                @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnCancel";
                   settings.Text = "取消";
                   settings.ControlStyle.CssClass = "button";
                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/no.png");
                   settings.CausesValidation = false;
                   settings.ClientSideEvents.Click = "cancel";
                   settings.Width = System.Web.UI.WebControls.Unit.Pixel(70);

               }).GetHtml() </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        @Html.Hidden("hidMessage", (ViewData["message"]))
    }
</body>
</html>
